package com.parenting.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.parenting.entities.GiftDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.parenting.request.SearchGiftPageListRequest;
import com.parenting.response.GiftPageListResponse;
import com.parenting.response.GiftResponse;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 连带赠表 Mapper 接口
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-09-15
 */
public interface GiftMapper extends BaseMapper<GiftDO> {

    /***
     * d
     * @param page
     * @param request
     * @return
     */
    IPage<GiftPageListResponse> pageListGift(@Param("page") IPage page, @Param("request")SearchGiftPageListRequest request);

    /***
     * 查询列表详情
     * @param id
     * @return
     */
    GiftResponse getGiftResponseById(@Param("id") String id);
}
